const { DataTypes } = require('sequelize/dist');
const sequelize = require('../config/sequelize');
const User = sequelize.define('user', {
  user_id: {
    type: DataTypes.INTEGER,
    allowNull: false,
    primaryKey: true,
    autoIncrement: true,
  },
  username: {
    type: DataTypes.STRING,
  },
  password: {
    type: DataTypes.STRING,
  },
  user_level: {
    type: DataTypes.INTEGER,
  },
  state: {
    type: DataTypes.INTEGER,
  },
  avatar_url: {
    type: DataTypes.INTEGER,
  },
});

module.exports = User;
